import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import Home from "@pages/index.vue";
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: Home,
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@pages/Login/index.vue'),
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('@pages/Register/index.vue'),
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('@pages/Home/index.vue'),
  },
  {
    path: '/topic',
    name: 'topic',
    component: () => import('@pages/Topic/index.vue'), 
  }, 
  {
    path: '/publish',
    name: 'publish',
    component: () => import('@pages/Publish/index.vue'), 
  }, 
  {
    path: '/message',
    name: 'message',
    component: () => import('@pages/Message/index.vue'), 
  }, 
  {
    path: '/me',
    name: 'me',
    component: () => import('@pages/Me/index.vue'), 
  }, 
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;

